package org.ladybug;

import java.io.File;

import org.hibernate.cfg.Configuration;
import org.hibernate.tool.hbm2ddl.SchemaExport;

public class CreateDatabase {

	public static void main(String[] args) {
		try{
		Configuration cfg = new Configuration();
		cfg.configure(new File("C:/progetti/workspace/ladybug/src/java/hibernate.cfg.xml"));
		SchemaExport exp = new SchemaExport(cfg);
		exp.create(false, true);
		}
		catch(Exception e){
			e.printStackTrace();
		}
	}
}
